import React, { Component } from 'react'
import { BackTopWrapper } from './style'

class BackTop extends Component {
  handleScrollTop() {
    window.scrollTo(0, 0)
  }
  render() {
    return <BackTopWrapper onClick={this.handleScrollTop}>回到顶部</BackTopWrapper>
  }
}
export default BackTop
